FROM rancher-docker.pkg.coding.net/idea/phpstorm/php:7.3

RUN apt install lsb-release ca-certificates apt-transport-https -y
RUN apt-get install software-properties-common -y
RUN apt-get install wget -y
RUN apt-get install -y gnupg
# RUN add-apt-repository ppa:ondrej/php
RUN echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/sury-php.list
RUN wget -qO - https://packages.sury.org/php/apt.gpg | apt-key add -
RUN apt-get update 
RUN apt-get install -y php8.0-cli php8.0-common php8.0-imap php8.0-redis php8.0-curl
RUN apt-get install -y php8.0-snmp php8.0-xml php8.0-sqlite3 php8.0-mbstring php8.0-iconv php8.0-mysql php8.0-xdebug php8.0-swoole

#w7team-docker.pkg.coding.net/w7/mirror/ide:php8